export class ApiException extends Error {
  public code: number

  constructor(message: string, code: number) {
    super(message)
    this.name = 'ApiException'
    this.code = code
    Object.setPrototypeOf(this, ApiException.prototype)
  }
}
